# coding: utf-8
from . import db, BaseModel




class WordDictionary(db.Model):
    __tablename__ = 'word_dictionary'

    auto_id = db.Column(db.BigInteger, primary_key=True, info='自增主键')
    word_dictionary_id = db.Column(db.Integer, info='单词属于词典的id')
    word_id = db.Column(db.Integer, info='单词id')
    dictionary_id = db.Column(db.Integer, info='词典id')
    is_test = db.Column(db.Integer, server_default=db.FetchedValue(), info='是否设置为该词典的题库')
    is_delete = db.Column(db.Integer, server_default=db.FetchedValue(), info='是否删除')
    create_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue(), info='创建记录时间')
    update_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue(), info='更新记录时间')